package ${package.Service};

<#if cfg.enableGetId == 1>
 <#assign keyCount=0>
 <#list table.fields as field>
  <#if field.keyFlag>
   <#assign keyCount=keyCount+1>
  </#if>
 </#list>
</#if>
import ${package.Entity}.${entity};
import ${superServiceClassPackage};
<#if (cfg.enableGetId == 1) && (keyCount gt 1)>
import java.util.HashMap;
</#if>
<#if (cfg.enableGetId == 1) && (keyCount gt 0)>
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import java.util.List;
</#if>

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {
 <#if cfg.enableGetId == 1>
  <#if keyCount == 1>
   <#list table.fields as field>
    <#if field.keyFlag>
     List<${field.propertyType}> getIdList(@Param(Constants.WRAPPER) Wrapper wrapper);
     ${field.propertyType} getId(@Param(Constants.WRAPPER) Wrapper wrapper);
    </#if>
   </#list>
  </#if>
  <#if keyCount gt 1>
   List<HasMap<String,Object>> getIdList(@Param(Constants.WRAPPER) Wrapper wrapper);
   HasMap<String,Object> getId(@Param(Constants.WRAPPER) Wrapper wrapper);
  </#if>
 </#if>
}
</#if>
